﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace CSharpGeneratorForProton
{
    class Logger
    {
        private static readonly string LOG_FILE = AppDomain.CurrentDomain.BaseDirectory + @"\Error.txt";

        public static void Error(string message)
        {
            StreamWriter writer = File.AppendText(LOG_FILE);
            writer.WriteLine(message);
            writer.Close();
        }

        public static void Info(string message)
        {
            StreamWriter writer = File.AppendText(LOG_FILE);
            writer.WriteLine(message);
            writer.Close();
        }
    }
}
